package cn.lanqiao.service.impl;


import cn.lanqiao.entity.Score;
import cn.lanqiao.service.ScoreService;

public class ScoreServiceImpl implements ScoreService {
	private cn.lanqiao.dao.ScoreDao dao = new cn.lanqiao.dao.impl.ScoreDaoImpl();
	@Override
	public Object[][] lists() {
		return dao.getAllScores();
	}
	@Override
	public void deleteUserByid(String id) {
		dao.deleteUserByid(id);
	}
	@Override
	public int addScores(Score score) {
		return dao.addScores(score);
	}
	@Override
	public void updateUser(String sid, Score score) {
		dao.update(sid, score);
		
	}
	@Override
	public Object[][] getAllScore() {
		
		return dao.getAllScore();
	}
}